package xwj.example.demo.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;

@Data
@NoArgsConstructor
@TableName("role")
public class Role {
    @TableId("name")
    String name;//直接作为权限
    @TableField("remark")
    String remark;
    @TableField("authority")
    String authority;
    //List<String> authorities=new ArrayList<>();
}
